<?php
		if(isset($_COOKIE['name'])){
			
		}else{
			echo '<h3>您是非法登陆哟！</h3>';
			header("Refresh:1;login.html");
			exit;
		}
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-with,initial-scale=1,maximum-scale=1,user-scalable=no">
		<link href="css/bootstrap.min.css" rel="stylesheet"/>
		<title>记事本</title>
		<script src="js/zong.js"></script>
	</head>
	<body> <!--style="background: url(img/记事本背景.jpg);"-->
		<div>
			<div id="ji" class="col-md-3" style="float: left;color: black;">
				<script type="text/javascript">sui("黑白记事本","ji");</script>
			</div>
			<div>
				<a href="notepad_xie.php">
					<div class="col-md-8" style="background-color: black;color: white;text-align: center;-webkit-border-radius: 10px;border-radius: 10px;">
						<h1>点我记事</h1>
					</div>	
				</a>
			</div>
					<?php
						require_once "notepad_get.php";
					echo '<div class="col-md-8" style="margin-top: 2em;color: black;">';
						$num = $num - 1;
						$s = 0;
        				for(;$num >= 0;$num--){
        					echo "<h1>".$content[$num]."</h1>"."<h3>".$time[$num]." 作者：".$writer[$num]."</h3><hr>";
        					$s++;
        				}	
        			echo '</div>';	
					?>
			
		</div>
		
		<script src="js/jquery.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
	</body>
</html>